<{include file="public/header.html"}>
<script src="/static/public/jquery.pagination.js" type="text/javascript" charset="utf-8"></script>

<div class="fossa pb20">
	<{include file="public/space_top.html"}>
	<div class="w1180-con">
		<{include file="public/space_left.html"}>
		<div class="w880 fr">
			<div class="fossa-list bjf mt20">
				<div class="plr20">
					<div class="title-big pt20">
						Ta的帖子
						<a href="<{eval url('post')}>" class="btn fr">写文章</a>
					</div>
					<div class="fossa-post mb10">
						
					</div>
				</div>
				<div class="article">
					<div class="article-list">
                                        <{if $arts}>
						<ul>
                                                        <{foreach from=$arts item=val}>
							<li class="article-con">
                                                            <a href="<{$val['detail_url']}>" target="_blank" class="img fl">
                                                                <img src="<{$val['thumb']}>" onerror="this.onerror=null;this.src='http://static.tan66.com/upfiles/df.jpg';"/>
								</a>
								<div class="con fr">
                                                                    <a href="<{$val['detail_url']}>" target="_blank" class="title"><{$val['title']}></a><{if $val['status'] == 0}><span class="fr no-check">未审核</span><{/if}>
									<a href="<{$val['detail_url']}>" class="txt mt20 textnum110"><{$val['summary']}></a>
									<div class="label mt15">
										<div class="label-list">
                                                                                    <{if $val['tags']}>
                                                                                        <{foreach from=$val['tags'] item=tag}>
                                                                                        <a href="<{$tag['turl']}>" target="_blank"><{$tag['tname']}></a>
                                                                                        <{/foreach}>
                                                                                    <{/if}>
										</div>
										<div class="clear"></div>
									</div>
									<div class="user mt15">
										<b class="icon-index section fl mr5"></b>
                                        <a href="<{$val['cat_url']}>" target="_blank" class="fl cat"><{$val['cat_name']}></a>
                                        <a href="<{$val['space_url']}>" class="name fl ml15">作者：Ta</a>
                                        <b class="icon-index eye fl ml15"></b>
										<span class="num fl ml10"><{$val['readnum']}>/<{$val['commentnum']}></span>
										<p class="time fr"><{$val['create_time']}></p>
										<div class="clear"></div>
									</div>
								</div>
								<div class="clear"></div>
							</li>
                                                        <{/foreach}>
                                                    </ul>
                                            <{else}>
                                            <div class="tip-null"></div>
                                            <{/if}>
					</div>
				</div>
			</div>
			<div class="mwenda">
				<div class="mwenda-con" style="padding: 0;border: 0;">
					<div class="mwenda-list mt30 bjf p20">
						<p class="title-big">
							Ta的提问
                                                        <a href="javascript:void(0);" data-url="<{eval url('wenda/asking')}>" data-blank='1' class="btn fr">提问</a>
						</p>
                                                <{if $wendas}>
                                                <{foreach from=$wendas item=val}>
						<div class="con mt20 pb10">
							<div class="right-info fl">
                                                            <a href="<{$val['detail_url']}>" class="info-title textnum35" target="_blank"><{$val['title']}></a>
								<div class="info mt10">
									<i><{$val['answernum']}>回答&nbsp;&nbsp;&nbsp;&nbsp;<{$val['create_time']}></i>
								</div>
								<div class="label mt5">
                                                                    <{foreach from=$val['tags'] item=tag}>
                                                                    <a href="<{$tag['turl']}>" target="_blank"><{$tag['tname']}></a>
                                                                    <{/foreach}>
								</div>
							</div>
							<div class="adopt <{if $val['answer_id']}>icon-adopt-2<{else}>icon-adopt-1<{/if}> icon-index  fr">
							</div>
							<div class="clear"></div>
                                                        <{if $val['answer_content']}>
                                                        <a href="<{$val['answer_url']}>" target="_blank" class="mwenda-reply mt10">
                                                                最新回答：<{$val['answer_content']}>
                                                        </a>
                                                        <{/if}>
						</div>
                                                <{/foreach}>
                                                <{else}>
                                                <div class="tip-null"></div>
                                                <{/if}>
					</div>
				</div>
			</div>
			
			<div class="mcomments bjf mt20 p20">
				<div class="title-big">
					Ta的评论
				</div>
				<div class="mcomments-con pt20">
				    <{if $comments}>
                                    <ul>
                                    <{foreach from=$comments item=val}>
                                        <li>
                                            <a href="<{$val['author_url']}>" class="head fl mr20"><img src="<{$val['authorid_head_img']}>" onerror="this.onerror=null;this.src='http://static.tan66.com/upfiles/head.png';"/></a>
                                            <div class="con">
                                                    <div class="overhide">
                                                        <a href="<{$val['comment_url']}>" target="_blank" class="title fl"><{$val['title']}></a>
                                                            <i class="time fr"><{$val['create_time']}></i>
                                                    </div>
                                                    <div class="mt10">
                                                        <i>作者：</i><a href="<{$val['author_url']}>" target="_blank" class="name mr20"><{$val['authorid_nickname']}></a>
                                                            <i class="num"><{$val['commentnum']}>评论</i>
                                                            <div class="btn fr">
                                                                <a href="<{$val['comment_url']}>" target="_blank" class="rep ml20">回复</a>
                                                            </div>
                                                            <div class="clear"></div>
                                                    </div>
                                            </div>
                                            <div class="txt">
                                                <{if $val['repay_user_id']}><span><a href="<{$val['reply_url']}>" style="font-size: 12px;color: #44A7E4;" target="_blank">@<{$val['reply_nickname']}>：</a></span><{/if}><a href="<{$val['comment_url']}>" target="_blank" class="mt10"><{$val['content']}></a>
                                            </div>
                                        </li>
                                    <{/foreach}>
                                    </ul>
                                    <{else}>
                                    <div class="tip-null"></div>
                                    <{/if}>
				</div>
			</div>
		</div>
		<div class="clear"></div>
	</div>
</div>

<script type="text/javascript">
	var text = $(".article .article-list .article-con .con .title");
	if("undefined" != typeof text)
	for(i = 0; i < text.length; i++) {
		var str = text[i].innerHTML;
		textLeng = 20;
		str.length > textLeng && (text[i].innerHTML = str.substring(0, textLeng) + "...")
	};
</script>

		<!--底部-->
<{include file="public/footer.html"}>
